{extend name="AdminPublic:public"}
{block name="admin"}
  <div class="row"> 
   <div class="col-lg-12"> 
    <section class="panel"> 
     <header class="panel-heading"> 
      <span style="font-size:20px;">您的位置 :</span> 
      <span style="color:#65CEA7;">友情链接管理 &gt; 链接列表</span> 
      <span class="tools pull-right"> <a href="javascript:;" class="fa fa-chevron-down"></a> <a href="javascript:;" class="fa fa-times"></a> </span> 
     </header> 
     <div class="panel-body"> 
      <!-- <div class="space15"></div> --> 
      <div id="editable-sample_wrapper" class="dataTables_wrapper form-inline" role="grid">
       <div class="row">
        <div class="col-lg-6">
         <div id="editable-sample_length" class="dataTables_length"></div>
        </div>
       </div> 
       <table class="table table-striped table-hover table-bordered dataTable" id="editable-sample" aria-describedby="editable-sample_info"> 
        <thead> 
         <tr role="row"> 
          <!-- <th class="sorting" role="columnheader" tabindex="0" aria-controls="editable-sample" rowspan="1" colspan="1" aria-label="Last Name: activate to sort column ascending" style="text-align:center;width: 100px;">ID</th>  -->
          <th class="sorting" role="columnheader" tabindex="0" aria-controls="editable-sample" rowspan="1" colspan="1" aria-label="Points: activate to sort column ascending" style="text-align:center;width: 178px;">链接名称</th> 
          <th class="sorting" role="columnheader" tabindex="0" aria-controls="editable-sample" rowspan="1" colspan="1" aria-label="Status: activate to sort column ascending" style="text-align:center;width: 143px;">链接地址</th>
          <!-- <th class="sorting" role="columnheader" tabindex="0" aria-controls="editable-sample" rowspan="1" colspan="1" aria-label="Edit: activate to sort column ascending" style="text-align:center;width:143px;">邮箱</th>  --> 
          <th class="sorting" role="columnheader" tabindex="0" aria-controls="editable-sample" rowspan="1" colspan="1" aria-label="Edit: activate to sort column ascending" style="text-align:center;width:143px;">显示状态</th> 
          <th class="sorting" role="columnheader" tabindex="0" aria-controls="editable-sample" rowspan="1" colspan="1" aria-label="Delete: activate to sort column ascending" style="text-align:center;width: 112px;">操作</th> 
         </tr> 
        </thead> 
        <tbody role="alert" aria-live="polite" aria-relevant="all">
          {foreach name="links" item="row"}
         <tr class="even"> 
          <!-- <td class=" ">{$row['id']}</td>  -->
          <td class=" ">{$row['linksname']}</td> 
          <td class=" ">{$row['linksaddress']}</td> 
          <td class=" "><a href="/adminlinks/status/id/{$row['id']}/status/{$row['status']}">{$row['status']==0?'下架':'上架'}</a></td> 
          <td class=" " style="text-align:center;"> <a class="label label-danger label-mini" href="/adminlinks/delete/id/{$row['id']}">删除</a> <a class="label label-success label-mini" href="/adminlinks/edit/id/{$row['id']}">编辑</a></td> 
         </tr>
         {/foreach}
        </tbody> 
       </table> 
      </div>
     </div>
    </section>
   </div>
  </div>
<script type="text/javascript">
  $("btn").click(function(){
    alert(1);
  });
</script>
{/block}